import request from '@/util/request'

export default {
    findStudents() {//查找学生
        return request({
            url: '/student/list.do',
            method: 'get'
        })
    },


    findByPage(pageNow, pageSize) {//分页查找
        return request({
            url: `/student/findByPage.do?page=${pageNow}&pageSize=${pageSize}`,
            method: 'get',
        })
    },


    search(pageNow,pageSize,data){// 3. 条件查询结果进行分页
        return request({
            url: `/student/search.do?page=${pageNow}&pageSize=${pageSize}`,
            method: 'post',
            data
        })
    },
    save(data){//保存学生数据
        return request({
            url: '/student/save.do',
            method: 'post',
            data
        })
    }
}


















